<div class="fm-content">
    <!-- 最上面标题栏 -->
    <div class="title">
        <i nz-icon [type]="'desktop'"></i>
        &nbsp;&nbsp;公安空防安全
    </div>
    <!-- 内容 -->
    <div class="work">

        <!-- 查询框 -->
        <div class="top">
            <!-- first-input -->
            <nz-select class="fm-input first-input" (nzOpenChange)="airportDic.load('0')"
                [(ngModel)]="fs.queryObject['airport:=']" [nzPlaceHolder]="'所属机场'">
                <nz-option *ngFor="let option of airportDic.datas" [nzLabel]="option.display" [nzValue]="option.id">
                </nz-option>
                <nz-option *ngIf="airportDic.isLoading" nzDisabled nzCustomContent>
                    <i nz-icon type="loading" class="loading-icon"></i>加载中...
                </nz-option>
            </nz-select>
            <nz-button-group>
                <button nz-button nzType="primary" (click)="fs.loadData(true)">查询</button>
                <button nz-button (click)="fs.resetQueryObject() && fs.loadData(true)">重置</button>
            </nz-button-group>
            <div class="tool-right">
                <nz-button-group>
                    <button *ngIf="ss.mi.sa || ss.mi.gakfaqxz" nz-button [nzType]="'primary'" (click)="editRow(null)">新增</button>
                    <!-- <button nz-button (click)="fs.editRow()">编辑</button> -->
                    <button *ngIf="ss.mi.sa || ss.mi.gakfaqsc"  nz-popconfirm nzTitle="确认删除选择项?" (nzOnConfirm)="fs.delEntitys()" nzPlacement="bottomRight"
                        nz-button>删除</button>
                  <a nz-button href="assets/images/公安空防安全.xls" download="公安空防安全.xls">模板下载</a>
                  <button nz-button (click)="fs.export('xjmh_gakf.html', '公安空防安全.xls')">导出</button>
                  <nz-upload nzAction="{{ fs.getExcelUploadUrl() }}" [nzLimit]="1" [nzHeaders]="ffs.fileHeaders"
                             [nzFilter]="fs.excelFilters" [nzAccept]="'.xls,.xlsx'" (nzChange)="excelHandleChange($event)">
                    <button *ngIf="ss.mi.sa || ss.mi.gakfaqxz" nz-button>导入</button>
                  </nz-upload>
                </nz-button-group>
            </div>
        </div>

        <!-- 右则样表单主体 -->
        <div class="work-content">
            <div class="table">
                <nz-table nzSize="middle" nzBordered nzShowSizeChanger [nzPageSizeOptions]='[ 10, 15, 20, 30, 40, 50 ]'
                    [nzFrontPagination]="false" [nzData]="fs.datas" [nzLoading]="fs.isLoading || fs.isDeleing"
                    [nzTotal]="fs.rowsCount" [(nzPageIndex)]="fs.pageIndex" [(nzPageSize)]="fs.pageSize"
                    (nzPageIndexChange)="fs.loadData()" (nzPageSizeChange)="fs.loadData(true)"
                    [nzWidthConfig]="['50px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px']"
                    [nzScroll]="{x: '4500px' }">
                    <thead>
                        <tr>
                            <th rowspan="3" nzShowCheckbox [(nzChecked)]="fs.allChecked"
                                [nzIndeterminate]="fs.indeterminate" (nzCheckedChange)="fs.checkAll($event)"></th>
                            <th rowspan="3" [nzAlign]="'center'">所属机场</th>
                            <th rowspan="3" [nzAlign]="'center'">非法干扰行为(起)</th>
                            <th rowspan="3" [nzAlign]="'center'">不守规旅客行为和扰乱性旅客行为(起)</th>
                            <th colspan="5">警卫工作</th>
                            <th colspan="22">公安业务</th>
                            <th colspan="5">空地联动</th>
                            <th colspan="8">内部保卫</th>
                        </tr>
                        <tr>
                            <th colspan="2">专、包机勤务</th>
                            <th colspan="3">航班勤务</th>
                            <th colspan="3">刑事侦破</th>
                            <th colspan="2">涉恐案件</th>
                            <th colspan="2">群体性事件</th>
                            <th colspan="4">消防工作</th>
                            <th colspan="3">毒品案件</th>
                            <th colspan="4">虚假恐怖情况</th>
                            <th colspan="4">治安交通</th>
                            <th rowspan="2">安检报警(次)</th>
                            <th rowspan="2">机组报警(次)</th>
                            <th colspan="3">机场公安处置结果</th>
                            <th colspan="5">内部检查整改</th>
                            <th colspan="3">内部人员犯罪</th>
                        </tr>
                        <tr>
                            <th>专包机勤务(架次)</th>
                            <th>出动警力(人次)</th>
                            <th>保障要人(人次)</th>
                            <th>保障航班(架次)</th>
                            <th>出动警力(人次)</th>
                            <th>破案(起)</th>
                            <th>抓获犯罪嫌疑人(人次)</th>
                            <th>查获逃犯(人次)</th>
                            <th>破案(起)</th>
                            <th>查获犯罪嫌疑人(人次)</th>
                            <th>处置(起)</th>
                            <th>出动警力(人次)</th>
                            <th>火灾(起)</th>
                            <th>火灾损失(万元)</th>
                            <th>检查(次)</th>
                            <th>发出整改单(份)</th>
                            <th>破获案件数(起)</th>
                            <th>缴获毒品数(克)</th>
                            <th>抓获人数(人)</th>
                            <th>处置(起)</th>
                            <th>处理(人次)</th>
                            <th>拘留(人次)</th>
                            <th>经济处罚(人次)</th>
                            <th>查处治安事件(起)</th>
                            <th>治安处罚(人)</th>
                            <th>交通违章(起)</th>
                            <th>交通事故(起)</th>
                            <th>刑事立案(件)</th>
                            <th>治安处罚(人)</th>
                            <th>不予立案(件)</th>
                            <th>检查企事业单位(家)</th>
                            <th>检查治安保卫重点单位(家)</th>
                            <th>检查发现治安隐患(起)</th>
                            <th>发出通知书(份)</th>
                            <th>开展法制宣传教育(次)</th>
                            <th>发生涉及内部人员犯罪(起)</th>
                            <th>涉及内保人员(人)</th>
                            <th>治安拘留(人)</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr *ngFor="let data of fs.datas">
                            <td nzShowCheckbox [(nzChecked)]="data.checked" (nzCheckedChange)="fs.refreshCheckStatus()">
                            </td>
                            <!-- <td><span (click)="fs.editRow(data)" class="form-edit"></span></td> -->
                            <td [nzAlign]="'center'"><span (click)="editRow(data)"
                                    class="form-edit">{{data.airportName}}</span></td>
                            <td>{{data.illegalevent}}</td>
                            <td>{{data.disturbevent}}</td>
                            <td>{{data.gchartercount}}</td>
                            <td>{{data.gchartersendperson}}</td>
                            <td>{{data.gflightprotectperson}}</td>
                            <td>{{data.gflightprotectflight}}</td>
                            <td>{{data.gflightsendperson}}</td>
                            <td>{{data.pcriminalsolvecase}}</td>
                            <td>{{data.pcriminalarrestperson}}</td>
                            <td>{{data.pcriminalescapeperson}}</td>
                            <td>{{data.pterroristsolvecase}}</td>
                            <td>{{data.pterroristarrestperson}}</td>
                            <td>{{data.pgrouphandle}}</td>
                            <td>{{data.pgroupsendperson}}</td>
                            <td>{{data.pfirecount}}</td>
                            <td>{{data.pfirelose}}</td>
                            <td>{{data.pfirecheck}}</td>
                            <td>{{data.pfirechange}}</td>
                            <td>{{data.pdrugsolvecase}}</td>
                            <td>{{data.pdrugcount}}</td>
                            <td>{{data.pdrugpersoncount}}</td>
                            <td>{{data.pfaketerroristhandle}}</td>
                            <td>{{data.pfaketerroristsolve}}</td>
                            <td>{{data.pfaketerroristdetain}}</td>
                            <td>{{data.pfaketerroristpublish}}</td>
                            <td>{{data.ptransportcase}}</td>
                            <td>{{data.ptransportpublish}}</td>
                            <td>{{data.ptransportillegal}}</td>
                            <td>{{data.ptransportaccident}}</td>
                            <td>{{data.afcheckalarm}}</td>
                            <td>{{data.afflightalarm}}</td>
                            <td>{{data.afcriminalcase}}</td>
                            <td>{{data.afpublish}}</td>
                            <td>{{data.afreject}}</td>
                            <td>{{data.icheckunit}}</td>
                            <td>{{data.icheckimportunit}}</td>
                            <td>{{data.icheckhidedanger}}</td>
                            <td>{{data.isendnotice}}</td>
                            <td>{{data.iholdteach}}</td>
                            <td>{{data.icrinimal}}</td>
                            <td>{{data.iprotectperson}}</td>
                            <td>{{data.idetain}}</td>
                        </tr>
                    </tbody>
                </nz-table>
            </div>
        </div>
    </div>
</div>
